package com.ruibo.modules.quartz.repository;

import com.ruibo.modules.quartz.domain.QuartzJob;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;

import java.util.List;

/**
 * @ClassName QuartzJobRepository
 * @Description QuartzJobRepository
 * @Author SunFeng
 * @Date 2020/2/28 15:28
 * @Version 1.0
 */
public interface QuartzJobRepository extends JpaRepository<QuartzJob,Long>, JpaSpecificationExecutor<QuartzJob> {
    /**
     * 查询启用的任务
     * @return List
     */
    List<QuartzJob> findByIsPauseIsFalse();
}
